class User {
    String name
    String role
    byte[] photo
    String gender
    String password
    Long salary
    String workplace
    String cellphone
    String description
    Date birthday
    Date joinday
    static hasMany = [schools : String, skills: String, friends : User, teams : Team, performances : Performance]
    static constraints = {
        name(blank:false)
        password(blank:false)
        role(inList:['user','admin'], nullable:true)
        photo(nullable:true, maxSize:10000000)
        gender(nullable:true)
        salary(nullable:true)
        workplace(nullable:true)
        cellphone(nullable:true)
        description(nullable:true)
        birthday(nullable:true)
        joinday(nullable:true)
        schools(nullable:true)
        skills(nullable:true)
        friends(nullable:true)
        teams(nullable:true)
        performances(nullable:true)

    }
}
